package com.test.day04.reader;

import java.io.FileReader;
import java.io.IOException;

/**
 * @program: 字符输入流，Reader是字符输入流的最顶层的父类
 * @author: luhd
 * @create: 2021-08-07
 */
public class Demo01Reader {
    public static void main(String[] args) throws IOException {
        FileReader fr = new FileReader("c.txt");
        int len = 0;
        while((len = fr.read())!=-1){
            System.out.print((char)len);
        }
        fr.close();
    }
}
